@layout("/layout/header.html"){}

        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">角色列表</div>
                            </div>
                            <div class="widget-body  am-fr">
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    <div class="am-form-group">
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button id="testUserAdd" type="button" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</button>
                                                <button type="button" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span> 保存</button>
                                                <button type="button" class="am-btn am-btn-default am-btn-warning"><span class="am-icon-archive"></span> 审核</button>
                                                <button type="button" class="am-btn am-btn-default am-btn-danger"><span class="am-icon-trash-o"></span> 删除</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <form action="${ctxPath}/dict/list" method="post" id="search-form" target="list-page" class="clearfix">
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                    <div class="am-form-group tpl-table-list-select">
                                        <select data-am-selected="{btnSize: 'sm'}">
							              <option value="option1">所有类别</option>
							              <option value="option2">IT业界</option>
							              <option value="option3">数码产品</option>
							              <option value="option3">笔记本电脑</option>
							              <option value="option3">平板电脑</option>
							              <option value="option3">只能手机</option>
							              <option value="option3">超极本</option>
							            </select>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                        <input type="text" class="am-form-field ">
                                        <span class="am-input-group-btn">
								            <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button"></button>
								        </span>
								        <script type="text/javascript">
										$("#search-form").getPageList({'submitBtnId':'search-btn'})
									</script>
                                    </div>
                                </div>
						</form>
                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                                        <thead>
		<tr>
			<th class="center">标签</th>
			<th class="center">键值</th>
			<th class="center">类型</th>
			<th class="center">排序</th>
			<th class="center">描述</th>
			<th class="center">操作</th>
		</tr>
	</thead>

	<tbody>
		@for(item in page.list){
			<tr>
				<td class="center">${item.label!}</td>
				<td class="center">${item.value!}</td>
				<td class="center">${item.type!}</td>
				<td class="center">${item.sort!}</td>
				<td class="center">${item.description!}</td>
				<td class="center">
					 <div class="tpl-table-black-operation">
                                                    @if(auth.hasPermission("test:testUser:edit")){
                                                        <a href="edit?id=${item.id!}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>
                                                     @}
                                                     @if(auth.hasPermission("test:testUser:delete")){   
                                                        <a href="${ctxPath}/dict/delete?id=${item.id!}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                       
                                                      @}  
                            </div>
				</td>
			</tr>
		@}
	</tbody>
                                    </table>
                                </div>
                                <div class="am-u-lg-12 am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                           <!-- <li class="am-disabled"><a href="#">«</a></li>
                                            <li class="am-active"><a href="#">1</a></li>
                                            <li><a href="#">2</a></li>
                                            <li><a href="#">3</a></li>
                                            <li><a href="#">4</a></li>
                                            <li><a href="#">5</a></li>
                                            <li><a href="#">»</a></li>-->
                                            ${pageCode!}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <script src="${ctxPath}/static/assets/js/amazeui.min.js"></script>
    <script src="${ctxPath}/static/assets/js/amazeui.datatables.min.js"></script>
    <script src="${ctxPath}/static/assets/js/dataTables.responsive.min.js"></script>
    <script src="${ctxPath}/static/assets/js/app.js"></script>
<script>
$("#testUserAdd").click(function(){
	window.location.href="add";
});

</script>
</body>

</html>